
package com.sausageking.client.consumer.ui;

import java.util.List;

import com.google.gwt.user.client.ui.IsWidget;
import com.sausageking.client.common.Context;
import com.sausageking.client.consumer.activity.ContainerPresenter;
import com.sausageking.shared.Checkin;
import com.sausageking.shared.Merchant;
import com.sausageking.shared.Offer;
import com.sausageking.shared.Redemption;

public interface MerchantView extends IsWidget {

  void setMerchant(Merchant merchant);

  DealView addDeal(Offer offer);

  void clearDeals();

  Presenter getPresenter();

  interface Presenter extends DealView.Presenter {

    void load(Context context);

    void updateView(Merchant merchant, List<Checkin> checkins,
        List<Redemption> redemptions, Context context);

    void setContainerPresenter(ContainerPresenter container);

    void setView(MerchantView view);

  }
}
